<?php
/**
 * @package Component Metromap for Joomla! 1.5
 * @version $Id: controller.php 4 2010-08-17 13:58:48Z batyrkin $
 * @author Batyrkin Anton
 * @copyright (C) 2010- Batyrkin Anton
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 **/

defined( '_JEXEC' ) or die();
jimport('joomla.application.component.controller');

// Submenu view
$view	= JRequest::getVar( 'view', '', '', 'string', JREQUEST_ALLOWRAW );

if ($view == '' || $view == 'metromapinfo') {
	JSubMenuHelper::addEntry(JText::_('Points'), 'index.php?option=com_metromap&view=metromappoints' );
	JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&section=com_metromap' );
	JSubMenuHelper::addEntry(JText::_('Stations'), 'index.php?option=com_metromap&view=metromapstations' );
	JSubMenuHelper::addEntry(JText::_('Lines'), 'index.php?option=com_metromap&view=metromaplines' );
	JSubMenuHelper::addEntry(JText::_('Info'), 'index.php?option=com_metromap', true );
}

if ($view == 'metromappoints') {
	JSubMenuHelper::addEntry(JText::_('Points'), 'index.php?option=com_metromap&view=metromappoints', true );
	JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&section=com_metromap' );
	JSubMenuHelper::addEntry(JText::_('Stations'), 'index.php?option=com_metromap&view=metromapstations' );
	JSubMenuHelper::addEntry(JText::_('Lines'), 'index.php?option=com_metromap&view=metromaplines' );
	JSubMenuHelper::addEntry(JText::_('Info'), 'index.php?option=com_metromap');
}

if ($view == 'metromapstations') {
	JSubMenuHelper::addEntry(JText::_('Points'), 'index.php?option=com_metromap&view=metromappoints' );
	JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&section=com_metromap' );
	JSubMenuHelper::addEntry(JText::_('Stations'), 'index.php?option=com_metromap&view=metromapstations', true );
	JSubMenuHelper::addEntry(JText::_('Lines'), 'index.php?option=com_metromap&view=metromaplines' );
	JSubMenuHelper::addEntry(JText::_('Info'), 'index.php?option=com_metromap');
}

if ($view == 'metromaplines') {
	JSubMenuHelper::addEntry(JText::_('Points'), 'index.php?option=com_metromap&view=metromappoints' );
	JSubMenuHelper::addEntry(JText::_('Categories'), 'index.php?option=com_categories&section=com_metromap' );
	JSubMenuHelper::addEntry(JText::_('Stations'), 'index.php?option=com_metromap&view=metromapstations' );
	JSubMenuHelper::addEntry(JText::_('Lines'), 'index.php?option=com_metromap&view=metromaplines', true );
	JSubMenuHelper::addEntry(JText::_('Info'), 'index.php?option=com_metromap' );
}

class MetromapController extends JController
{
	function display()
	{
		parent::display();
	}
}